package net.expectx.pay.gateway.rpc.api;


import net.expectx.common.single.base.BaseResult;

import java.util.List;

/**
 * @author  lj
 * 2018-05-17
 * @param
 */
public interface BaseService<Record, Example> {
    BaseResult insert(Record var1);

    BaseResult insertSelective(Record var1);

    BaseResult deleteByExample(Example var1);

    BaseResult deleteByPrimaryKey(Object var1);

    BaseResult updateByExampleSelective(Record var1, Example var2);

    BaseResult updateByExample(Record var1, Example var2);

    BaseResult updateByPrimaryKeySelective(Record var1);

    BaseResult updateByPrimaryKey(Record var1);

    List<Record> selectByExample(Example var1);

    Record selectByPrimaryKey(Object var1);

    long countByExample(Example var1);

    BaseResult physicalRemoveByExample(Byte var1, Example var2);
}
